﻿@using Abp.Extensions
@using Abp.Application.Services.Dto
@using KDS.Mes.Web.Models.Common.Modals
@using KDS.Mes.Web.Models.JitAlcCodes

@model CreateOrEditJitAlcCodeModalViewModel

@* 初始化头部 *@
@Html.Partial("~/Views/Common/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(Model.IsEditMode ? (L("EditJitAlcCode") + ": " + Model.JitAlcCode.Style) : L("CreateJitAlcCode")))


<!--html代码区域-->

<div class="modal-body">
    <form name="jitAlcCodeInformationsForm" role="form" novalidate class="form-validation">
        <input type="hidden" name="Id" value="@Model.JitAlcCode.Id" />
        <div>
            <div hidden="hidden">
                @if (Model.IsEditMode)
            {
                    <input type="hidden" name="Id" value="@Model.JitAlcCode.Id" />
                }
            </div>

            <div class="form-group ">
                <label for="cartypeIdEdit">@L("CartypeId")</label>
                @Html.DropDownList("CartypeId", Model.Cartypes.Select(a => a.ToSelectListItem()), new
           {
               @class = "form-control selectpicker",
               data_live_search = "true",
               title = L("PlaaseSelect"),
               id = "cartypeIdEdit"
           })
            </div>

            <div class="form-group ">
                <label for="styleIdEdit">@L("StyleId")</label>
                @Html.DropDownList("StyleId", Model.Styles.Select(a => a.ToSelectListItem()), new
           {
               @class = "form-control selectpicker",
               data_live_search = "true",
               title = L("PlaaseSelect"),
               id = "styleIdEdit"
           })
            </div>

            <div class="form-group ">
                <label for="alcCodeIdEdit">@L("AlcCodeId")</label>
                @Html.DropDownList("AlcCodeId", Model.AlcCodes.Select(a => a.ToSelectListItem()), new
           {
               @class = "form-control selectpicker",
               data_live_search = "true",
               title = L("PlaaseSelect"),
               id = "alcCodeIdEdit"
           })
            </div>

            <div class="form-group ">
                <label for="lineIdEdit">@L("LineId")</label>
                @Html.DropDownList("LineId", Model.Lines.Select(a => a.ToSelectListItem()), new
           {
               @class = "form-control selectpicker",
               data_live_search = "true",
               title = L("PlaaseSelect"),
               id = "lineIdEdit"
           })
            </div>

            <div class="form-group ">
                <label for="storageIdEdit">@L("StorageId")</label>
                @Html.DropDownList("StorageId", Model.Storages.Select(a => a.ToSelectListItem()), new
           {
               @class = "form-control selectpicker",
               data_live_search = "true",
               title = L("PlaaseSelect"),
               id = "storageIdEdit"
           })
            </div>

        </div>
    </form>
</div>
@Html.Partial("~/Views/Common/Modals/_ModalFooterWithSaveAndCancel.cshtml")

